package com.education.wisdom.service;


import com.education.wisdom.pojo.MsAnswers;
import com.education.wisdom.vo.MsAnswersVo;

import java.util.List;
import java.util.Map;

/**
 * 答卷 服务层
 * 
 * @author ruoyi
 * @date 2018-12-17
 */
public interface IMsAnswersService 
{
	/**
	 * 查询答卷信息
	 *
	 * @param id 答卷ID
	 * @return 答卷信息
	 */
	public MsAnswers selectMsAnswersById(Integer id);

	/**
     * 查询答卷信息
     * 
     * @param id 答卷ID
     * @return 答卷信息
     */
	public MsAnswers selectMsAnswersByIds(Map<String, Object> map);
	
	/**
     * 查询答卷列表
     * 
     * @param MsAnswers 答卷信息
     * @return 答卷集合
     */
	public List<MsAnswersVo> selectMsAnswersList(MsAnswers MsAnswers);


	/**
	 * 查询答卷列表
	 *
	 * @param djUserid 答题者Id
	 * @return 答卷集合
	 */
	public List<MsAnswers> selectAnswersByUId(String djUserid);

	/**
	 * 查询答卷列表
	 *
	 * @param
	 * @return 答卷集合
	 */
	public List<MsAnswers> selectAnswersByPara(Map<String, Object> map);

	/**
     * 新增答卷
     * 
     * @param MsAnswers 答卷信息
     * @return 结果
     */
	public int insertMsAnswers(MsAnswers MsAnswers);
	
	/**
     * 修改答卷
     * 
     * @param MsAnswers 答卷信息
     * @return 结果
     */
	public int updateMsAnswers(MsAnswers MsAnswers);
		
	/**
     * 删除答卷信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteMsAnswersByIds(String ids);

	public List<MsAnswersVo> selectMsAnswersStuList(String userId);

	public List<MsAnswersVo> selectMsAnswersAllStuList();
	
}
